From 437f68c29a18303de3c75962021bbe030b2cf85c Mon Sep 17 00:00:00 2001 From: Lorenz Diener Date: Fri, 11 Oct 2019 23:59:24 +0200 Subject: Update tests for 3.0.1 and fix regressions --- .../test_status_post[Content warning-None].yaml | 26 +++++++++++----------- 1 file changed, 13 insertions(+), 13 deletions(-) (limited to 'tests/cassettes/test_status_post[Content warning-None].yaml') diff --git a/tests/cassettes/test_status_post[Content warning-None].yaml b/tests/cassettes/test_status_post[Content warning-None].yaml index f2c4397..873d125 100644 --- a/tests/cassettes/test_status_post[Content warning-None].yaml +++ b/tests/cassettes/test_status_post[Content warning-None].yaml @@ -12,9 +12,9 @@ interactions: method: POST uri: http://localhost:3000/api/v1/statuses response: - body: {string: '{"id":"102317293249017955","created_at":"2019-06-22T21:13:15.140Z","in_reply_to_id":null,"in_reply_to_account_id":null,"sensitive":true,"spoiler_text":"Content - warning","visibility":"public","language":"ja","uri":"http://localhost/users/mastodonpy_test/statuses/102317293249017955","url":"http://localhost/@mastodonpy_test/102317293249017955","replies_count":0,"reblogs_count":0,"favourites_count":0,"favourited":false,"reblogged":false,"muted":false,"pinned":false,"content":"\u003cp\u003eToot!\u003c/p\u003e","reblog":null,"application":{"name":"Mastodon.py - test suite","website":null},"account":{"id":"1234567890123456","username":"mastodonpy_test","acct":"mastodonpy_test","display_name":"","locked":false,"bot":false,"created_at":"2019-06-22T23:11:52.441Z","note":"\u003cp\u003e\u003c/p\u003e","url":"http://localhost/@mastodonpy_test","avatar":"http://localhost/avatars/original/missing.png","avatar_static":"http://localhost/avatars/original/missing.png","header":"http://localhost/headers/original/missing.png","header_static":"http://localhost/headers/original/missing.png","followers_count":0,"following_count":0,"statuses_count":2,"emojis":[],"fields":[]},"media_attachments":[],"mentions":[],"tags":[],"emojis":[],"card":null,"poll":null}'} + body: {string: '{"id":"102945952846569388","created_at":"2019-10-11T21:49:39.333Z","in_reply_to_id":null,"in_reply_to_account_id":null,"sensitive":true,"spoiler_text":"Content + warning","visibility":"public","language":"ja","uri":"http://localhost/users/mastodonpy_test/statuses/102945952846569388","url":"http://localhost/@mastodonpy_test/102945952846569388","replies_count":0,"reblogs_count":0,"favourites_count":0,"favourited":false,"reblogged":false,"muted":false,"pinned":false,"content":"\u003cp\u003eToot!\u003c/p\u003e","reblog":null,"application":{"name":"Mastodon.py + test suite","website":null},"account":{"id":"1234567890123456","username":"mastodonpy_test","acct":"mastodonpy_test","display_name":"","locked":false,"bot":false,"created_at":"2019-06-22T23:11:52.441Z","note":"\u003cp\u003e\u003c/p\u003e","url":"http://localhost/@mastodonpy_test","avatar":"http://localhost/avatars/original/missing.png","avatar_static":"http://localhost/avatars/original/missing.png","header":"http://localhost/headers/original/missing.png","header_static":"http://localhost/headers/original/missing.png","followers_count":0,"following_count":0,"statuses_count":3,"last_status_at":"2019-10-11T21:49:39.348Z","emojis":[],"fields":[]},"media_attachments":[],"mentions":[],"tags":[],"emojis":[],"card":null,"poll":null}'} headers: Cache-Control: ['no-cache, no-store'] Content-Type: [application/json; charset=utf-8] @@ -25,10 +25,10 @@ interactions: X-Download-Options: [noopen] X-Frame-Options: [SAMEORIGIN] X-Permitted-Cross-Domain-Policies: [none] - X-Request-Id: [0d870fca-dedb-4f79-9b97-816975516fce] - X-Runtime: ['0.141256'] + X-Request-Id: [9bba9f41-24bb-4e5a-be13-1fa9d462fded] + X-Runtime: ['0.132788'] X-XSS-Protection: [1; mode=block] - content-length: ['1250'] + content-length: ['1294'] status: {code: 200, message: OK} - request: body: null @@ -40,11 +40,11 @@ interactions: Content-Length: ['0'] User-Agent: [python-requests/2.18.4] method: DELETE - uri: http://localhost:3000/api/v1/statuses/102317293249017955 + uri: http://localhost:3000/api/v1/statuses/102945952846569388 response: - body: {string: '{"id":"102317293249017955","created_at":"2019-06-22T21:13:15.140Z","in_reply_to_id":null,"in_reply_to_account_id":null,"sensitive":true,"spoiler_text":"Content - warning","visibility":"public","language":"ja","uri":"http://localhost/users/mastodonpy_test/statuses/102317293249017955","url":"http://localhost/@mastodonpy_test/102317293249017955","replies_count":0,"reblogs_count":0,"favourites_count":0,"favourited":false,"reblogged":false,"muted":false,"pinned":false,"text":"Toot!","reblog":null,"application":{"name":"Mastodon.py - test suite","website":null},"account":{"id":"1234567890123456","username":"mastodonpy_test","acct":"mastodonpy_test","display_name":"","locked":false,"bot":false,"created_at":"2019-06-22T23:11:52.441Z","note":"\u003cp\u003e\u003c/p\u003e","url":"http://localhost/@mastodonpy_test","avatar":"http://localhost/avatars/original/missing.png","avatar_static":"http://localhost/avatars/original/missing.png","header":"http://localhost/headers/original/missing.png","header_static":"http://localhost/headers/original/missing.png","followers_count":0,"following_count":0,"statuses_count":2,"emojis":[],"fields":[]},"media_attachments":[],"mentions":[],"tags":[],"emojis":[],"card":null,"poll":null}'} + body: {string: '{"id":"102945952846569388","created_at":"2019-10-11T21:49:39.333Z","in_reply_to_id":null,"in_reply_to_account_id":null,"sensitive":true,"spoiler_text":"Content + warning","visibility":"public","language":"ja","uri":"http://localhost/users/mastodonpy_test/statuses/102945952846569388","url":"http://localhost/@mastodonpy_test/102945952846569388","replies_count":0,"reblogs_count":0,"favourites_count":0,"favourited":false,"reblogged":false,"muted":false,"pinned":false,"text":"Toot!","reblog":null,"application":{"name":"Mastodon.py + test suite","website":null},"account":{"id":"1234567890123456","username":"mastodonpy_test","acct":"mastodonpy_test","display_name":"","locked":false,"bot":false,"created_at":"2019-06-22T23:11:52.441Z","note":"\u003cp\u003e\u003c/p\u003e","url":"http://localhost/@mastodonpy_test","avatar":"http://localhost/avatars/original/missing.png","avatar_static":"http://localhost/avatars/original/missing.png","header":"http://localhost/headers/original/missing.png","header_static":"http://localhost/headers/original/missing.png","followers_count":0,"following_count":0,"statuses_count":3,"last_status_at":"2019-10-11T21:49:39.348Z","emojis":[],"fields":[]},"media_attachments":[],"mentions":[],"tags":[],"emojis":[],"card":null,"poll":null}'} headers: Cache-Control: ['no-cache, no-store'] Content-Type: [application/json; charset=utf-8] @@ -55,9 +55,9 @@ interactions: X-Download-Options: [noopen] X-Frame-Options: [SAMEORIGIN] X-Permitted-Cross-Domain-Policies: [none] - X-Request-Id: [b1d8d252-bd43-417b-b4d1-f44b4e98dc14] - X-Runtime: ['0.119479'] + X-Request-Id: [11c04432-3494-44fd-9a71-bdeed325be2d] + X-Runtime: ['0.141596'] X-XSS-Protection: [1; mode=block] - content-length: ['1220'] + content-length: ['1264'] status: {code: 200, message: OK} version: 1 -- cgit v1.2.3